package com.test11.yaml.test01;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang3.ArrayUtils;
import org.ho.yaml.Yaml;
import org.junit.Test;
/*
 * 封装到对象中
 */
@SuppressWarnings("all")
public class YamlTest02 {
	public static void main(String[] args) throws Exception {
		InputStream resourceAsStream = YamlTest02.class.getClassLoader().getResourceAsStream("com/test11/yaml/test01/test02.yml");

		Person person = Yaml.loadType(resourceAsStream, Person.class);

		System.out.println(person);
	}
}
